package com.jt.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//1.标识配置类   配置类一般于@Bean注解连用
@Configuration
public class MybatisPlusConfig {
    //需要将对象交给容器管理Map集合 map<paginationInterceptor方法名,实例化之后的对象>
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
